import yaml
import InfoTrace
# 读取配置文件
with open("config.yaml", "r", encoding="utf-8") as file:
    config = yaml.safe_load(file)

# 使用配置
weapon_dict = config["weapon_dict"]
coordinates = config["coordinates"]

# 示例访问
weapon_box_coordinate = tuple(coordinates["weapon_box_coordinate"])
print(weapon_box_coordinate)  # 输出: (1217, 1130)
